﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MeshPrintInfomation : MeshDrawBase
{
    protected override void DrawMesh()
    {
        
    }

    private void OnDrawGizmos()
    {
        targetFilter = GetComponent<MeshFilter>();
        
        mesh = targetFilter.sharedMesh;

        Gizmos.color = Color.red;
        for(int i = 0; i < mesh.vertexCount; ++i)
        {
            Vector3 worldPos = transform.TransformPoint(mesh.vertices[i]);

            Gizmos.DrawSphere(worldPos, .2f);
        }
    }
}
